#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"
void TestHeap()
{
	Heap hp;
	HeapCreate(&hp);
	HeapPush(&hp, 42);
	HeapPush(&hp, 2);
	HeapPush(&hp, 17);
	HeapPush(&hp, 23);
	HeapPush(&hp, 57);
	HeapPush(&hp, 34);
	HeapPush(&hp, 9);
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestory(&hp);

}
int main()
{
	TestHeap();
	return 0;
}